//
//  ViewController.h
//  JiangHu
//
//  Created by GT mac on 15/12/22.
//  Copyright © 2015年 GT mac. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <WebKit/WebKit.h>
#import <JavaScriptCore/JavaScriptCore.h>
#import "WXApi.h"

@protocol TestJSExport <JSExport>

JSExportAs
(wxShareMessage  /** handleFactorialCalculateWithNumber 作为js方法的别名 */,
- (void)wxShareMessagetitle:(NSString *)title desc: (NSString *)desc url: (NSString *)url mode: (NSString *)mode target: (NSString *)target
 );

JSExportAs(wxPayRmb, - (void)WXPayRmbpartnerId :(NSString *)partnerId prepayId:(NSString *)prepayId packageValue:(NSString *)packageValue nonceStr: (NSString *)nonceStr timeStamp:(NSString *)timeStamp sign:(NSString *)sign
           );

JSExportAs(alipayPay, - (void)alipayPay: (NSString *)data);


@end

@protocol ViewControllerDelegate <NSObject>

- (void) RespLinkContent;
@end

@interface ViewController : UIViewController<TestJSExport, WXApiDelegate>

@property (nonatomic, assign) id<ViewControllerDelegate,NSObject> delegate;

+(instancetype)sharedManager;

@end

